﻿//-----------------------------------------------------------------------
// <copyright file="AutoMapperWebConfiguration.cs" company="SampleThreeTier">
//     Sample 3 tier application by Anurag.
// </copyright>
//-----------------------------------------------------------------------
namespace PresentationLayer
{
    using AutoMapper;
    using BusinessEntity;
    using PresentationLayer.Models;

    /// <summary>
    /// The Auto Mapper Web Configuration
    /// </summary>
    public static class AutoMapperWebConfiguration
    {
        /// <summary>
        /// Configures this instance.
        /// </summary>
        public static void Configure()
        {
            Mapper.CreateMap<BookModel, BookEntity>();
            Mapper.CreateMap<BookEntity, BookModel>();
        }
    }
}